home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / WW3DSnapShot.h < prev    next >
Encoding:
Text File  |  1995-03-22  |  1.3 KB  |  43 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5.  
  6. #import <appkit/appkit.h>
  7. #import <3Dkit/3Dkit.h>
  8.  
  9. @interface WW3DSnapShot:Object
  10. {
  11.     N3DProjectionType    projectionType;     /* perpective or orthographic */
  12.     NXColor        backgroundColor; /* color of rectangle under RIB */
  13.     BOOL                doesDrawBackgroundColor;
  14.     N3DHider        hider;
  15.  
  16.     float               l, r, t, b;   // projectionRectangle;
  17.  
  18.     RtPoint        eyePoint, viewPoint;  /* view vector */
  19.     float        rollAngle;  /* neg. rot. about uBasis */
  20.     float        fieldOfView;
  21.     float        pixelAspectRatio;
  22.     float        nearPlane, farPlane;
  23.     RtPoint        sBasis, tBasis, uBasis;  /* basis w.r.t. world space */
  24.     
  25.     RtMatrix        preTransform;    /* pre-multiply the camera matrix by
  26.                     this matrix, if desired (cache for
  27.                     above object) */
  28.     BOOL                usesPreTransformMatrix;
  29.     RtMatrix        transform; /* world-to-eye transformation:
  30.                     ct = Te . R, Te translates eye
  31.                     point to origin, R rotates view
  32.                     vector, V = view - eye, such
  33.                     that it is parallel with the
  34.                     z-axis, and rotates the resulting
  35.                     vector about the z-axis by
  36.                     -rollAngle. */
  37.   RtFloat    fStop, focalLength, focalDistance;
  38. }
  39.  
  40. - applyToCamera:aCamera;
  41.  
  42. @end
  43.